package com.atguigu08._interface.exer3;

/**
 * ClassName: ElectricVehicle
 * Package: com.atguigu08._interface.exer3
 * Description:
 *
 * @Author 姜
 * @Create 2023/11/24 17:42
 * @Version 1.0
 */
public class ElectricVehicle extends Vehicle implements IPower{
    public ElectricVehicle() {
    }

    public ElectricVehicle(String brand, String color) {
        super(brand, color);
    }

    @Override
    public void run() {
        System.out.println("骑上我心爱的小电驴");
    }

    @Override
    public void power() {
        System.out.println("小电驴使用电力驱动");
    }
}
